package cn.sh.library.mgts.bean;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import cn.sh.library.mgts.dto.Pager;

public class InstanceSearchBean {
	// 检索类型 ： 1-简单；2-高级；
	private String searchType = "1";

	// 简单检索
	private String freetext = "";

	// 二次检索 
	private String secondCdtn = "";

	// 高级检索等{"logic"="and/or", "field"="TM", "value"="", "type"="0/1/2/3/4/5"}
	// 0-模糊，1-精确，2-大于，3-小于，4-分面其他，5-前缀匹配
	private List<Map<String, String>> cdtn = new ArrayList<Map<String, String>>();

	// 排序{"field"="", "type"="0/1"} 1-正，0-倒
	private Map<String, String> sorts = new HashMap<String, String>();

	// 分页
	private Pager pager = new Pager();

	public String getSearchType() {
		return searchType;
	}

	public void setSearchType(String searchType) {
		this.searchType = searchType;
	}

	public String getFreetext() {
		return freetext;
	}

	public void setFreetext(String freetext) {
		this.freetext = freetext;
	}

	public String getSecondCdtn() {
		return secondCdtn;
	}

	public void setSecondCdtn(String secondCdtn) {
		this.secondCdtn = secondCdtn;
	}

	public List<Map<String, String>> getCdtn() {
		return cdtn;
	}

	public void setCdtn(List<Map<String, String>> cdtn) {
		this.cdtn = cdtn;
	}

	public Pager getPager() {
		return pager;
	}

	public void setPager(Pager pager) {
		this.pager = pager;
	}

	public Map<String, String> getSorts() {
		return sorts;
	}

	public void setSorts(Map<String, String> sorts) {
		this.sorts = sorts;
	}

}
